#include "GUI.h"
#include "MC_include.h"

void GUI_GetOnoPiont(void)
{
	GUI_PID_STATE state;
	tp_dev.scan(0);

	//printf("state x:%d,y:%d\r\n",tp_dev.y[0],tp_dev.x[0]);
	if(tp_dev.x[0]<lcddev.width&&tp_dev.y[0]<lcddev.height)
	{
		state.Layer = 0;
		state.y = tp_dev.y[0];
		state.x = tp_dev.x[0];
		state.Pressed = tp_dev.sta;
		GUI_PID_StoreState(&state);
	}
}

//void GUI_TOUCH_X_ActivateX(void)
//{

//}

//void GUI_TOUCH_X_ActivateY(void)
//{

//}

//int GUI_TOUCH_X_MeasureX(void)
//{
//	int x_pos;
//	tp_dev.scan(0);
//	//printf("x touch %d\r\n",tp_dev.x[0]);
//	x_pos = tp_dev.y[0];
//	return x_pos;
//}

//int GUI_TOUCH_X_MeasureY(void)
//{
//	int y_pos;
//	tp_dev.scan(0);
//	//printf("y touch %d\r\n",tp_dev.y[0]);
//	y_pos = tp_dev.x[0];
//	return y_pos;
//}
